c# winforms datagridview bind to list

90

c# winforms datagridview bind to list -

var list = new List<Person>()
{
    new Person { Name = "Joe", },
    new Person { Name = "Misha", },
};
var bindingList = new BindingList<Person>(list);
var source = new BindingSource(bindingList, null);
grid.DataSource = source;

Comments

Submit
0 Comments